package com.ynet.middleground.approve.bean;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description TODO
 * @date 2020-06-29 17:44
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "新增审批节点业务属性请求信息", description = "新增审批节点业务属性请求信息")
public class AddTaskAttrReq extends BaseReqObj {

    private static final long serialVersionUID = 8090575929973577510L;

    /**
     * 业务属性代码 配置流程任务节点时使用的代码
     */
    @ApiModelProperty(value = "业务属性代码 配置流程任务节点时使用的代码", notes = "业务属性代码 配置流程任务节点时使用的代码", dataType = "String",
        required = true)
    @NotBlank(message = "业务属性代码不能为空")
    private String code;

    /**
     * 业务属性名称
     */
    @ApiModelProperty(value = "业务属性名称", notes = "业务属性名称", dataType = "String", required = true)
    @NotBlank(message = "业务属性名称不能为空")
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", notes = "描述", dataType = "String")
    private String description;

}
